//登录接口返回数据类型
export interface ResponseData<T> {
  code: number;
  data: T;
  message: string;
  ok: boolean;
}

//用户登录需要携带参数ts类型
export interface loginData {
  username: string;
  password: string;
}

//服务器返回用户信息相关的数据类型
export interface checkUser {
  userId: number;
  avatar: string;
  name: string;
  password: string;
  desc: string;
  roles: string[];
  buttons: string[];
  routes: string[];
  token: string;
}
